#ifndef _PAGE_H
#define _PAGEH

#include "print.h"
#include "mypkg.h"
#include "client.h"

//page_welcome.c
void* page_to_login();
void* page_to_regist();
void* page_to_welcome();
//page_index.c
void* page_to_index();
void* page_to_logout();
//page_chat_friend.c
void* page_to_friend_index();
void* page_to_friend_list();
void* page_to_friend_chat();
void* page_to_friend_add();
void* page_to_friend_delete();
//群聊导航页面
void* page_to_group_index();
void* page_to_group_chat();
void* page_to_group_mem();
void* page_to_group_add();
void* page_to_group_create();
void* page_to_group_mygrp();
//远程导航页面
void* page_to_myssh_index();
void* page_to_myssh_upload();
void* page_to_myssh_download();
void* page_to_myssh();

//聊天消息接收面板
int chat_panel_init(); //-1：初始化失败， 0：成功
int chat_panel_setUserChat(char* username);
int chat_panel_setGroupChat(char* groupname);


//打印路径行
void printBlue(char* msg);
void printPageNav(char* page_path);
void printPageNav2(char* page_path);
void printRed(char* msg);
void printRedF(char* msg, char* arg);
void printGreen(char* msg);
char getCmdInput(char* note);
//打印系统消息 TODO 这也是VIEW层和CONTROLLER无法解耦的部分
void printSystemRed(char* msg);
void printSystemGreen(char* msg);

#endif
